﻿using Web_Oto.Bases;
using Web_Oto.Data;

namespace Web_Oto.Business
{
    public class ContactBus : busObject
    {
        #region Constructor

        public ContactBus()
        {
            m_objDAL = new ContactDal(connectionstring, connectiontype);
        }

        public ContactBus(string connectionString)
            : base(connectionString)
        {
            m_objDAL = new ContactDal(connectionstring, connectiontype);
        }

        public ContactBus(string connectionString, string connectionType)
            : base(connectionString, connectionType)
        {
            m_objDAL = new ContactDal(connectionstring, connectiontype);
        }

        private ContactDal m_objDAL;

        #endregion

        #region methods

        public Contact GetContact()
        {
            return m_objDAL.GetContact();
        }

        public int Save(string description)
        {
            return m_objDAL.Save(description);
        }

        #endregion
    }
}
